package com.tgjorgoski.sidekicknotes.rtfview.support;

import java.awt.event.*;

import javax.swing.*;

/**
 * Implemented by classes which want to add their own actions to
 * the right click popup menu of text components
 * 
 * @author Tanasije Gjorgoski <tgjorgoski@novizio.com>
 */
public interface PopupMenuFiller {
	
	/**
	 * Implementations should get information if needed about the place of
	 * right click, the text component etc.. from the mouse event, 
	 * and according to that populate the menu with their actions
	 * @param populateThisMenu
	 * @param mw
	 * @param e
	 */
	void populateMenu(JPopupMenu populateThisMenu, MouseEvent e);
}
